/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author Cheng
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '/@/api/model/baseModel';

const { adminPath } = useGlobSetting();

export interface InFireInfo extends BasicModel<InFireInfo> {
  enterpriseId?: string; // 企业ID
  enterpriseName?: string; // 企业名称
  buildId?: number; // 建筑id
  buildName?: string; // 建筑名称
  regionId?: number; // 区域id
  regionIname?: string; // 区域名称
  alarmInfoId?: number; // 设备预警ID
  equipmentId?: string; // 设备Id
  equipmentName?: string; // 设备名称
  fireName?: string; // 火情名称
  location?: string; // 详细地址
  fireConfirmTime?: string; // 火情确认时间
  fireUserId?: string; // 确认用户id
  fireUserName?: string; // 确认用户名称
  fireInitiatorUser?: string; // 火情发起人
  fireInitiatorUserId?: string; // 火情发起人id
  rescueTime?: string; // 救援时间
  endTime?: string; // 结束时间
  createTime?: string; // 创建时间
  updateTime?: string; // 更新时间
  fireDrill?: string; // 火情演练标识
  fireVideo?: string; // 火情视频
  fireExecutionStatus?: string; // 火情执行状态（已发生/已结束）
  commander?: string; // 指战员
  drillUser?: string; // 演练发起人
  confirmFireFile?: string; // 火情结束拍照信息
  notifierCode?: number; // 用户编码
  fireId?: string; // 火情id
}

export const inFireInfoList = (params?: InFireInfo | any) =>
  defHttp.get<InFireInfo>({ url: adminPath + '/management/inFireInfo/list', params });

export const inFireInfoListData = (params?:any,data?: InFireInfo | any) =>
  defHttp.post<Page<InFireInfo>>({ url: adminPath + '/management/inFireInfo/listData', params,data });

export const inFireInfoForm = (params?:any,data?: InFireInfo | any) =>
  defHttp.get<InFireInfo>({ url: adminPath + '/management/inFireInfo/form', params,data });

export const inFireInfoSave = (params?: any, data?: InFireInfo | any) =>
  defHttp.postJson<InFireInfo>({ url: adminPath + '/management/inFireInfo/save', params, data });

export const inFireInfoDelete = (params?: InFireInfo | any) =>
  defHttp.get<InFireInfo>({ url: adminPath + '/management/inFireInfo/delete', params });

export const inFireInfoConfirm = (params?: InFireInfo | any) =>
  defHttp.get<InFireInfo>({ url: adminPath + '/management/inFireNotification/confirmationByUser', params });